import { getMerchantData } from '@/api/merchant';
import { merchantChild, TableData } from '@/types/table';

export default async function merchant(params: merchantChild): Promise<TableData> {
    const { content, totalElements } = await getMerchantData(params);

    return {
        list: content,
        total: totalElements,
    };
}
